<div class="wrapper wrapper-content animated fadeInRight">
    <!-- PAGE CONTENT BEGINS -->
    <div class="row">
        <div class="col-xs-12">
            <div class="ibox-content">
                <div class="row">
                    <div class="tableTools-container">
                        <a title="添加分类设置" href="<?=url('service.category/create')?>" class="btn btn-sm btn-success"><i
                                class=" fa fa-plus"></i>添加分类设置</a>
                    </div>
                    <div class="table-responsive">
                        <table id="simple-table" class="table table-striped">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>图片</th>
                                <th>名称</th>
                                <th>分类类型</th>
                                <th>排序</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <form id="mini_list">
                                <tbody>
                                <?php foreach($list as $val){ ?>
                                <tr>
                                    <td><?= $val->category_id ?></td>
                                    <td> <div style="background-color: <?=$val->color?>;border-radius: 50%;height: 60px;width: 60px; text-align: center;line-height: 60px;" ><img width="40" src="/attachs/uploads/<?=$val->photo?>"/></div></td>
                                    <td><?=$val->name?></td>
                                    <td><?=empty(config('dataattr.jzfltype')[$val->type]) ? '' : config('dataattr.jzfltype')[$val->type] ?></td>
                                    <td><?=$val->orderby?></td>
                                    <td>
                                        <div class="hidden-sm hidden-xs btn-group">
                                            <a title="编辑分类设置"
                                               href="<?=url('service.category/edit','category_id='.$val->category_id)?>"
                                               class="btn btn-xs btn-info"><i class=" fa fa-edit bigger-120"></i>编辑</a>
                                            <a title="删除分类设置" mini="act"
                                               href="<?=url('service.category/delete','category_id='.$val->category_id)?>"
                                               class="btn btn-xs btn-warning"><i
                                                    class="fa fa-trash bigger-120"></i>删除</a>
                                        </div>
                                    </td>
                                </tr>
                                <?php } ?>

                                </tbody>
                            </form>
                        </table>

                        <div>
                            <?php echo $page; ?>
                        </div>
                    </div><!-- /.row -->


                </div><!-- /.main-container -->


            </div>
        </div>
    </div>
</div>
